<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分类管理</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />

<body>

<table class="tableA"  width="100%" border="1" class="tableA" >
  <tr align="center">
    <td width="5%" nowrap="nowrap"><strong>编号</strong></td>
    <td width="8%" nowrap="nowrap"><strong>名称</strong></td>
    <td width="6%" nowrap="nowrap"><strong>排序</strong></td>
    <td width="5%" nowrap="nowrap"><strong>隐藏</strong></td>
    <td width="5%" nowrap="nowrap"><strong>操作</strong></td>
  </tr>
<?php
    global $cfg;
    foreach($this->list as $v){
    $v['hidden'] = $v['hidden'] == 0?'显示':'隐藏';
    $editurl =  $this->url ($this->baseUrl, "alllist", "edit", "id={$v['id']}", "admin");
    $delurl =  $this->url ($this->baseUrl, "alllist", "del", "id={$v['id']}&type={$v['type']}", "admin");
    
print <<<EOT
<tr align="center">
    <td width="5%" nowrap="nowrap">{$v['id']}</td>
    <td width="8%" nowrap="nowrap">{$v['name']}</td>
    <td width="6%" nowrap="nowrap">{$v['seq']}</td>
    <td width="5%" nowrap="nowrap">{$v['hidden']}</td>
    <td width="5%" nowrap="nowrap">
	<a href="{$editurl}">编辑</a>
	<a href="{$delurl}" onclick="javascript:return window.confirm('确认删除');">删除</a></td>
  </tr>
EOT;
}
?>
  <tr>
    <td colspan="5"><a href="<?php echo $this->url ($this->baseUrl, "alllist", "add", "type={$v['type']}", "admin");?>">添加</a></tr>
</table>
</body>
</html>
